package cn.gok.oop;

interface Fly{
    void fly();
}
interface Callable{
    void call();
}
class Plane implements Fly{

    @Override
    public void fly() {
        System.out.println("飞机在飞");
    }
    private String bornIn;
}
class Bird implements Fly,Callable{

    @Override
    public void fly() {
        System.out.println("鸟在飞");
    }

    @Override
    public void call() {
        System.out.println("鸟在叫");
    }
}
public class 接口 {
    public static void main(String[] args) {
        Fly fly = new Plane();
        fly.fly();
        Bird bird = new Bird();
        bird.call();
    }
}
